package demo7;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s =  scanner.nextLine();
        String result = "";

        for (String word:s.split("\\s+")) {
            if (!word.isEmpty()){
                result += word.charAt(0);
            }
        }

        System.out.println(result.toUpperCase());
    }
}
